﻿# CMakeList.txt: NIU_KE_PROJECT 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required(VERSION 3.8)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

#configure_file()
set(inc ${CMAKE_HOME_DIRECTORY}/NIU_KE_PROJECT/inc)
set(src ${CMAKE_HOME_DIRECTORY}/NIU_KE_PROJECT/src)


file(GLOB sources CMAKE_CONFIGURE_DEPENDS ${inc})


#线程池----Domestic_Library(动态库.so)
add_library(thread_pool_share_lib SHARED ${src}/thread_pool/threadpool.cpp)
target_include_directories(thread_pool_share_lib PRIVATE ${inc})

#网络服务器----Domestic_Licbrary(动态库.so)
add_library(webserver_share_lib SHARED ${src}/webserver/webserver.cpp)
target_include_directories(webserver_share_lib PUBLIC ${inc}/)


# 将源代码添加到此项目的可执行文件。
add_executable (NIU_KE_PROJECT "NIU_KE_PROJECT.cpp" "NIU_KE_PROJECT.h")


if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET NIU_KE_PROJECT PROPERTY CXX_STANDARD 20)
endif()

# TODO: 如有需要，请添加测试并安装目标。
